package com.ibeetl.admin.core.entity;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.beetl.sql.core.TailBean;

import java.util.Date;
import java.util.Map;

/**
 * 描述:用于辅助序列化beetlsql 的TailBean
 * @author : xiandafu
 */

public class BaseEntity extends TailBean implements java.io.Serializable {

	protected final static String ORACLE_CORE_SEQ_NAME="core_seq";
	protected final static String ORACLE_AUDIT_SEQ_NAME="audit_seq";
	protected final static String ORACLE_FILE_SEQ_NAME="core_seq";

	@JsonAnyGetter
    public Map<String, Object> getTails(){
    	return super.getTails();
    }

	//创建时间
	private Date createTime = new Date() ;

	//创建人
	private Integer createUser;


	private String status;
	//更新时间
    private Date updateTime = new Date() ;
//	//最后更新人
//  	private Integer updateUser;
	// 删除标识
	@JsonIgnore
	private Integer delFlag= 0;

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getCreateUser() {
		return createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	public Integer getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}
}
